(ruby-add-log-current-method): Improve performance at the expense
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 14 Feb 2013 05:45:33 +0000 (09:45 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 14 Feb 2013 05:45:33 +0000 (09:45 +0400)
commita6df3cc9f833c155c22cac99695db13d39897bad
tree029a580e97548821ad56c6a656175e6cb3d7bbfe
parenta3f75f8b59f47cbff219a80ff2b93e123696b3db
(ruby-add-log-current-method): Improve performance at the expense
of accuracy.  `ruby-block-contains-point' is relatively slow, so
only use it for method and singleton class blocks.

* test/automated/ruby-mode-tests.el
(ruby-add-log-current-method-after-inner-class): Lower
expectations: move point inside a method, initially.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el